export default class TextUtils{
  public static isEmpty(text: string): boolean {
    return text == null || text == undefined || text.length==0;
  }

  public static toCharArray(text: string): Array<string> {
    let arr: string[] = new Array(text.length);
    let index = 0
    while(index < text.length) {
      arr[index] = text.charAt(index);
      index += 1
    }
    return arr;
  }
}
